package com.qf.commerce.controller;

import com.qf.commerce.entity.Account;
import com.qf.commerce.resp.ResponseResult;
import com.qf.commerce.service.UserLogInService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author peng
 * @Date 2023/9/14 15:26
 * @Version 1.0.0
 */
@RestController
@RequestMapping("/userlogin")
public class UserLogInController {
    @Autowired
    private UserLogInService userLogInService;
    @PostMapping("/userLogin")
    public ResponseResult<Integer> selectUserPassword(String userName, String password) {
        return ResponseResult.success(userLogInService.selectUserPassword(userName,password));
    }
}
